/**
 * 
 */
package messaage;

/**
 * @author Olga
 * 
 */
public class RemovedForumMsg extends Message {

	protected String forumID;

	/**
	 * 
	 */
	public RemovedForumMsg(String username, String forumID) {
		super.username = username;
		this.forumID = forumID;
	}
        
        public RemovedForumMsg(String msg) {
		this.prase(msg);
	}

        private void prase (String msg){
            String[] splitted = msg.split("\n");
            this.forumID = splitted[1];
        }

	/*
	 * (non-Javadoc)
	 * 
	 * @see messaage.Message#toString()
	 */
	@Override
	public String toString() {
		return "RemovedForum\n" + this.forumID + "\n\0";
	}

	/**
	 * @return the forumID
	 */
	public int getForumID() {
		return Integer.parseInt(forumID);
	}
	
	

}
